﻿using Org.BouncyCastle.Asn1.Mozilla;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Ozone.Views.Widget
{
    /// <summary>
    /// 提问确认框
    /// </summary>
    public partial class WindowConfirmationDialog : Window
    {
        public WindowConfirmationDialog()
        {
            InitializeComponent();
        }

        public WindowConfirmationDialog(string messageInfo)
        {
            InitializeComponent();
            this.lbMessage.Content = messageInfo;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
            this.Close();
        }

        private void ConfirmButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            this.Close();
        }
    }
}